package com.dyh.quickdemo.demos.lbdFactoryBean;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;

/*
@Author=Joey Wheeler
@Date=2021/1/11 17:12
*/
public class FunctionNodeCenter {
    private static final Map<String, Function> functionMap
            =new ConcurrentHashMap<>();

    public static void regist(String id,Function function){
        functionMap.put(id,function);
    }
    public static void get(String id){
        functionMap.get(id);
    }

}
